namespace MotionFramework.UIKit
{
    public interface IWindowOperation
    {
        /// <summary>
        /// 打开UI界面 - 名称
        /// </summary>
        void ShowUIWindow(string name);

        /// <summary>
        /// 打开UI界面 - 模板
        /// </summary>
        void ShowUIWindow<T>() where T : UIWindow;

        /// <summary>
        /// 关闭UI界面 - 名称
        /// </summary>
        void CloseUIWindow(string name);

        /// <summary>
        /// 关闭UI界面 - 模板
        /// </summary>
        void CloseUIWindow<T>() where T : UIWindow;

        /// <summary>
        /// 关闭所有UI
        /// </summary>
        void CloseAllUIWindow();
    }
}
